package com.xizi.lotterySystem.service;

import com.xizi.lotterySystem.controller.param.UserMessageLoginParam;
import com.xizi.lotterySystem.controller.param.UserPasswordLoginParam;
import com.xizi.lotterySystem.controller.param.UserRegisterParam;
import com.xizi.lotterySystem.service.dto.UserDTO;
import com.xizi.lotterySystem.service.dto.UserRegisterDTO;
import com.xizi.lotterySystem.service.enumerate.UserIdentityEnum;

import java.util.List;

public interface IUserService {
    /**
     * 用户注册
     * @param userRegisterParam
     * @return
     */
    UserRegisterDTO register(UserRegisterParam userRegisterParam);

    /**
     * 密码登入方式
     * @param param
     * @return
     */
    String passwordLogin(UserPasswordLoginParam param);

    /**
     * QQ邮箱验证码登入方式
     *
     * @param param
     * @return
     */
    String messageLogin(UserMessageLoginParam param);

    /**
     * 查询用户列表
     *
     * @param identity
     * @return
     */
    List<UserDTO> findUserList(UserIdentityEnum identity);
}
